package com.edu.bean;

import java.util.List;

/**
 * @Author:zyn
 * @Date:2025/10/14--9:26:01
 */
public class Author {
    private int authorId;

    private String authorName;

    private String authorGender;

    private String authorAge;

    private List<Book> bookList;

    public List<Book> getBookList() {
        return bookList;
    }

    public void setBookList(List<Book> bookList) {
        this.bookList = bookList;
    }

    public int getAuthorId() {
        return authorId;
    }

    public void setAuthorId(int authorId) {
        this.authorId = authorId;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorGender() {
        return authorGender;
    }

    public void setAuthorGender(String authorGender) {
        this.authorGender = authorGender;
    }

    public String getAuthorAge() {
        return authorAge;
    }

    public void setAuthorAge(String authorAge) {
        this.authorAge = authorAge;
    }

    @Override
    public String toString() {
        return "Author{" +
                "authorId=" + authorId +
                ", authorName='" + authorName + '\'' +
                ", authorGender='" + authorGender + '\'' +
                ", authorAge='" + authorAge + '\'' +
                '}';
    }

    public Author() {
    }
}
